package domain;

public enum TowerType {
	RAPID{
		public int getValue(){
			return 0;
		}
	},
	ATTACK{
		public int getValue(){
			return 1;
		}
	},
	FREEZE{
		public int getValue(){
			return 2;
		}
	};
	public static TowerType toTowerType(int type){
		switch(type){
		case 0:
			return RAPID;
		case 1:
			return ATTACK;
		case 2:
			return FREEZE;
		default:
			throw new IllegalArgumentException("unsupported type");
		}
	}
	
	public abstract int getValue(); 
}
